package com.dhkj.web.idf.model;

import android.os.Parcel;
import android.os.Parcelable;

public class PictureSize   implements Parcelable {
    private float height;
    private float width;

    public PictureSize() {
    }

    public PictureSize(PictureSize pictureSize) {
        this.height = pictureSize.height;
        this.width = pictureSize.width;
    }

    public float getHeight() {
        return height;
    }

    public void setHeight(float height) {
        this.height = height;
    }

    public float getWidth() {
        return width;
    }

    public void setWidth(float width) {
        this.width = width;
    }

    protected PictureSize(Parcel in) {
        this.height = in.readFloat();
        this.width = in.readFloat();
    }

    public static final Creator<PictureSize> CREATOR = new Creator<PictureSize>() {
        @Override
        public PictureSize createFromParcel(Parcel in) {
            return new PictureSize(in);
        }

        @Override
        public PictureSize[] newArray(int size) {
            return new PictureSize[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(height);
        dest.writeFloat(width);
    }
}
